package com.linkai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yamon
 * @since 2021-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Moneyaccount对象", description="")
public class Moneyaccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "acc_id", type = IdType.AUTO)
    private Integer accId;

    @ApiModelProperty(value = "账户名称")
    private String accName;

    @ApiModelProperty(value = "账户类型（1，支付宝，2微信3现金，4其他）")
    private Integer accType;

    @ApiModelProperty(value = "期初金额")
    private BigDecimal accStartMoney;

    @ApiModelProperty(value = "当前余额，")
    private BigDecimal accNowMoney;

    @ApiModelProperty(value = "账户备注")
    private String accBackup;

      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Long deleted;


}
